package com.yuhanginfo.modules.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yuhanginfo.common.service.WebCrudService;
import com.yuhanginfo.modules.web.entity.WebOrdersDetail;
import com.yuhanginfo.modules.web.dao.WebOrdersDetailDao;

/**
 * 订单详情Service
 * @author yangs
 * @version 2017-09-18
 */
@Service
@Transactional(readOnly = true)
public class WebOrdersDetailService extends WebCrudService<WebOrdersDetailDao, WebOrdersDetail> {
    @Autowired
    private WebOrdersDetailDao ordersDetailDao;
    
	public WebOrdersDetail get(String id) {
		return super.get(id);
	}
	
	@Transactional(readOnly = false)
	public void save(WebOrdersDetail ordersDetail) {
		super.save(ordersDetail);
	}
	
	@Transactional(readOnly = false)
	public void delete(WebOrdersDetail ordersDetail) {
		super.delete(ordersDetail);
	}

	public List<WebOrdersDetail> selectByOrderCode(String ordersCode) {
		
		return ordersDetailDao.selectByOrderCode(ordersCode);
	}

	
}